/*
 * @Author: 余文童
 * @Date: 2020-08-10 10:53:10
 * @LastEditTime: 2020-08-13 01:36:29
 * @LastEditors: 余文童
 * @Description: 用户映射层接口类
 * @FilePath: \BackEnd\saleflower\src\main\java\com\wangwang\saleflower\mapper\UserMapper.java
 */
package com.wangwang.saleflower.mapper;

import com.wangwang.saleflower.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper{

    List<User> selectAllUser();

    User getUserByPassword(User user);

    Integer isUserExist(@Param("name") String name);

    String selectUserNameById(int id);

    User selectUserByName(@Param("name") String name);

    void addUser(User user);

    void updateUser(User newUser);

    void removeUserByName(String name);
}
